//
//  CMDBAlbumManagerDelegate.swift
//  CMDB
//
//  Created by 王磊 on 17/4/12.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

protocol CMDBAlbumManagerDelegate: NSObjectProtocol {
    // MARK: 获取相册
    func queryAlbums(albumParam: CMDBAlumbParam,handler: CMDBAlbumsHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler)
    
    func saveAlbums(albumList: Array<CMDBAlbumsBean>,identifier: String)
    
    func queryAlbumsCache(identifier: String) throws -> Array<CMDBAlbumsBean>
    // MARK: 获取图片的
    func queryPics(picsParam: CMDBPicParam,handler: CMDBPicsHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler)
    
    func savePics(picsList: Array<CMDBPicBean>,identifier: String)
    
    func queryPicsCache(identifier: String) throws -> Array<CMDBPicBean>
    // MARK:
    func addAlbum(albumParam: CMDBAddAlumbParam,handler: CMDBAddAlbumHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler) throws
    
    // MARK:
    func modifyAlbumName(albumParam: CMDBAddAlumbParam,handler: CMDBModifyAlbumNameHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler) throws
    
    // MARK:
    func deletePics(picsParam: CMDBDeletePicParam,handler: CMDBDeletePicsHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler) throws
    
}
